/* md5.h : md5 header define
 * Copyright (C) 2005-2012, drangon <drangon.zhou@gmail.com>
 * 2005-04
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef INCLUDED_DGNSC_MD5_H
#define INCLUDED_DGNSC_MD5_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif // __cplusplus

typedef struct dgn_md5_st * dgn_md5_t;

dgn_md5_t dgn_md5_init();
void dgn_md5_reset( dgn_md5_t md5 );
void dgn_md5_pushdata( dgn_md5_t md5, const char * data, int len );
uint8_t * dgn_md5_finish( dgn_md5_t md5 );
uint8_t * dgn_md5_get( dgn_md5_t md5 );
void dgn_md5_getstr( dgn_md5_t md5, char md5str[33] );
void dgn_md5_fini( dgn_md5_t md5 );

#ifdef __cplusplus
}
#endif // __cplusplus

#endif // INCLUDED_DGNSC_MD5_H

